package com.bnz.service.impl;
import com.alibaba.dubbo.config.annotation.Service;
import com.bnz.entity.Classes;
import com.bnz.mapper.ClassesMapper;
import com.bnz.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;


import java.util.List;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@Service // alibaba的，放进zookeeper里去
public class ClassesServiceImpl implements ClassesService {

	@Autowired
	private ClassesMapper classesMapper;

	//1. 查询所有班级
	@Override
	public List<Classes> findAll() {
		return classesMapper.selectAll();
	}
}
